$OpenBSD: patch-Common_Base_Ogre_BaseManager_cpp,v 1.2 2017/01/16 11:13:51 kirby Exp $
--- Common/Base/Ogre/BaseManager.cpp.orig	Mon Jan 26 18:32:35 2015
+++ Common/Base/Ogre/BaseManager.cpp	Mon Jan 16 14:02:27 2017
@@ -55,7 +55,7 @@ namespace base
 		#if MYGUI_PLATFORM == MYGUI_PLATFORM_APPLE
 			mResourcePath = macBundlePath() + "/Contents/Resources/";
 		#else
-			mResourcePath = "";
+			mResourcePath = "${SYSCONFDIR}/MYGUI/";
 		#endif
 	}
 
@@ -66,12 +66,16 @@ namespace base
 	bool BaseManager::create(int _width, int _height)
 	{
 		Ogre::String pluginsPath;
+		char *homedir;
+		homedir = getenv("HOME");
+		std::string homePath;
+		homePath = homedir;	
 
 		#ifndef OGRE_STATIC_LIB
 			pluginsPath = mResourcePath + mPluginCfgName;
 		#endif
 
-		mRoot = new Ogre::Root(pluginsPath, mResourcePath + "ogre.cfg", mResourcePath + "Ogre.log");
+		mRoot = new Ogre::Root(pluginsPath, homePath + "/mygui-ogre.cfg", homePath + "/mygui-Ogre.log");
 
 		setupResources();
 
